<?php

class DemoController extends Uuch_BaseController{
    public function init() {
        parent::init();
        if($this->view->isLogin){
            $this->view->account = Application_Model_UserAccount::addAccount($this->currentUser()->id);
            $this->view->cart = Application_Model_Cart::current();
        }
        $this->view->step = $this->getSafeParam('step')?$this->getSafeParam('step'):1;
        $this->disableLayout();
    }
    
    public function shopAction(){
        $this->view->type = "shop";
    }
    
    public function waybillAction(){
        $this->view->type = "waybill";
    }
    
    public function storeAction(){
        $this->view->type = "store";
    }
    
    public function visitAction(){
        $this->view->type = "visit";
    }
    
    public function paymentAction(){
        $this->view->type = "payment";
    }
    
}